/**
 * 报表设计公司(2011)
 */
package com.reportgear.designer.util;

import java.awt.Cursor;
import java.awt.Point;
import java.awt.Toolkit;

import javax.swing.Icon;

import net.abbp.swing.util.ImageUtils;

/**
 * @version 1.0 2011-3-24
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since ANNCSR 2.0
 */
public class GUIConstants {

	private static Icon blankIcon = null;
	public static final Cursor CURSOR_CELLDEFAULT = Toolkit.getDefaultToolkit().createCustomCursor(
			ImageUtils.readImage("cursor/cell_default.png"), new Point(16, 16), "CursorCellDefault");
	public static final Cursor CURSOR_DRAW = Toolkit.getDefaultToolkit().createCustomCursor(
			ImageUtils.readImage("cursor/cursor_draw.png"), new Point(16, 16), "CursorDraw");
	public static final Cursor CURSOR_VERTIC_SELECT = Toolkit.getDefaultToolkit().createCustomCursor(
			ImageUtils.readImage("cursor/cursor_vselect.gif"), new Point(16, 16), "ver_select");
	public static final Cursor CURSOR_VERTIC_MOVE = Toolkit.getDefaultToolkit().createCustomCursor(
			ImageUtils.readImage("cursor/cursor_vmove.gif"), new Point(16, 16), "ver_move");
	public static final Cursor CURSOR_HORIZENTAL_SELECT = Toolkit.getDefaultToolkit().createCustomCursor(
			ImageUtils.readImage("cursor/cursor_hselect.gif"), new Point(16, 16), "hor_select");
	public static final Cursor CURSOR_HORIZENTAL_MOVE = Toolkit.getDefaultToolkit().createCustomCursor(
			ImageUtils.readImage("cursor/cursor_hmove.gif"), new Point(16, 16), "hor_move");
	// public static DataFunction[] FunctionArray = null;
	/**
	 * 边框样式
	 */
	public static int[] BorderlineStyleArray = { 1, 2, 3, 4, 14, 5, 6, 7, 8, 9, 10, 11, 12, 13 };
	/**
	 * 下划线
	 */
	public static int[] UnderlineStyleArray = { 0, 1, 2, 3, 4, 14, 5, 6, 7, 8, 9, 10, 11, 12, 13 };

	public static Icon getBlankIcon() {
		if (blankIcon == null) {
			blankIcon = ImageUtils.readIcon("common/blank.gif");
		}
		return blankIcon;
	}
}
